<template>
	<image :src="src" mode="widthFix" :class="type" :style="getStyle"></image>
</template>

<script>
	export default {
		name:"liweijian-avatar",
		props: {
			// 头像地址
			src: {
				type: String,
				default: ""
			},
			// 头像形状
			type: {
				type: String,
				default: "rounded"
			},
			// 头像尺寸
			size: {
				type: [String, Number],
				default: 90
			},
		},
		data() {
			return {
				
			};
		},
		computed: {
			getStyle() {
				return `width: ${this.size}rpx; height: ${this.size}rpx;`;
			}
		},
	}
</script>